#!/bin/bash

# 编译 HelloJNI.c 文件
gcc -I"/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/include" -I"/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/include/darwin" -shared -o libhello.dylib HelloJNI.c

# 把生成的 libhello.dylib 文件拷贝到当前目录
cp libhello.dylib .
